package com.aaa.service.sas.Impl;


import com.aaa.dao.sas.TSasRecordDetailsMapper;
import com.aaa.entity.sas.TSasRecordDetails;
import com.aaa.service.sas.TSasRecordDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TSasRecordDetails)表服务实现类
 *
 * @author makejava
 * @since 2022-10-29 09:53:22
 */
@Service
public class TSasRecordDetailsServiceImpl implements TSasRecordDetailsService {
   @Autowired
   private TSasRecordDetailsMapper tSasRecordDetailsMapper;

   @Override
   public Boolean addRecordDetails(List<TSasRecordDetails> tSasRecordDetails) {
      int i = 0;
      for (TSasRecordDetails tSasRecordDetail : tSasRecordDetails) {
         i+=tSasRecordDetailsMapper.insert(tSasRecordDetail);
      }
      return tSasRecordDetails.size()==i;
   }
}
